﻿@model TuanAnhPersonalWeb.Models.ProjectModel
           
@using (Ajax.BeginForm("Search", "Project", null, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "divGrid", OnBegin = "beginPaging", OnSuccess = "successPaging" }, new { name = "formSearch" }))
{ 
  
   <table>
    <tr>
        <td>
            <fieldset>
                <legend>Search by: </legend>
                @Html.RadioButton("keySearch", "code", true) Project Name:
                @Html.TextBox("valSearch", "")
                <input type="submit" value="Search" id="btnSubmit" />
            </fieldset>
        </td>
        <td>
         <fieldset>
                <legend>Lọc</legend>
            
                @Html.RadioButton("keyFilter", "1", true, new { onclick = "submit_form()" }) Đang Phát Triển
                @Html.RadioButton("keyFilter", "2", false, new { onclick = "submit_form()" }) Đã Hoàn Tất
                @Html.RadioButton("keyFilter", "3", false, new { onclick = "submit_form()" })  Dự án tham gia vào
           </fieldset>
        </td>
    </tr>
   </table>
    <script type="text/javascript">
        function submit_form() {
            var btn = document.getElementById("btnSubmit");
            btn.click();
        }
    </script>
  
}



 
   